package com.zlf.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zlf.demo.model.User;
import com.zlf.demo.response.SelectUsersInfoResponseVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author zhanglongfei
 * @since 2021-01-15
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * @Description 查询用户角色信息
     * @param:
     * @return:
     * @author:张龙飞
     * @date:2021/1/15 16:00
     */
    List<SelectUsersInfoResponseVo> selectUserAndRoles();

    /**
     * @Description 根据id查询用户信息
     * @param:
     * @return:
     * @author:张龙飞
     * @date:2021/1/15 16:39
     */
    List<SelectUsersInfoResponseVo> listUsersByIds(@Param(value = "ids") List<Integer> ids);

}
